package com.lxy.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName Users
 * @Description TODO
 * @Author zhaojing
 * @Date 2019/11/28 10:03
 * @Version 1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Users implements Serializable {

    private Integer id;
    private String uName;
    private String phone;
    private String address;

    //1个用户对应了多个订单 ： 1-N
    private List<Orders> ordersList;

}
